const express = require("express");
var app = express();
app.get("/", function (req, res) {
    res.send("主页");
});

app.get("/login", function (req, res) {
    console.log(req.query);
    res.send("登录路由，user为：" + req.query.user + "==>  password为：" + req.query.password);
});
app.listen(8080, () => { console.log("启动成功") });
